package com.xmtlxx.wms.domain.bo;

import com.xmtlxx.common.core.domain.BaseEntity;
import com.xmtlxx.common.core.validate.AddGroup;
import com.xmtlxx.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 处置明细业务对象 t_deal_dtl
 *
 * @author xmtlxx
 * @date 2022-08-15
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("处置明细业务对象")
public class DealDtlBo extends BaseEntity {

    /**
     * 处置明细ID
     */
    @ApiModelProperty(value = "处置明细ID")
    private String id;

    /**
     * 处置记录ID
     */
    @ApiModelProperty(value = "处置记录ID", required = true)
    @NotBlank(message = "处置记录ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String dealId;

    /**
     * 物品编号
     */
    @ApiModelProperty(value = "物品编号", required = true)
    @NotBlank(message = "物品编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String pno;

    /**
     * 物品名称
     */
    @ApiModelProperty(value = "物品名称", required = true)
    @NotBlank(message = "物品名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 数量
     */
    @ApiModelProperty(value = "数量", required = true)
    @NotNull(message = "数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long nums;

    /**
     * 处置方式
     */
    @ApiModelProperty(value = "处置方式", required = true)
    @NotBlank(message = "处置方式不能为空", groups = { AddGroup.class, EditGroup.class })
    private String dealType;

    /**
     * 图片附件
     */
    @ApiModelProperty(value = "图片附件", required = true)
    @NotBlank(message = "图片附件不能为空", groups = { AddGroup.class, EditGroup.class })
    private String pics;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态")
    private String status;

    /**
     * 删除标识
     */
    @ApiModelProperty(value = "删除标识")
    private String delFlag;


    /**
     * 处置单位
     */
    @ApiModelProperty("处置单位")
    private String handleUnitName;

    /**
     * 协助单位
     */
    @ApiModelProperty("协助单位")
    private String helpUnitName;

    /**
     * 处置文书
     */
    @ApiModelProperty("处置文书")
    private String wsPdf;

    private String taskId;

    private String judgeTime;

    private String pnoKey;

    private String isTrailer;
}
